//获取当前时间
export function getCurrentTime() {
  const now = new Date();
  const year = now.getFullYear();
  const month = String(now.getMonth() + 1).padStart(2, "0"); // 月份补零
  const date = String(now.getDate()).padStart(2, "0"); // 日期补零
  const hour = String(now.getHours()).padStart(2, "0"); // 小时补零
  const minute = String(now.getMinutes()).padStart(2, "0"); // 分钟补零
  const second = String(now.getSeconds()).padStart(2, "0"); // 秒数补零

  return `${year}-${month}-${date} ${hour}-${minute}-${second}`;
}


